Statements and Functions

Statements and Functions

Statements cause ProModel to take some action or perform some operation. Unlike functions, statements neither return a value nor use parentheses, and logic may contain comments. (See Comments.) Statements can use spacing (including a new line) before each word in a statement, and are case insensitive so any letter may be either upper or lower case.

 

Functions return information such as a location’s capacity, the amount of time the simulation has been running, or a random number. A function is a keyword followed by parentheses, which may contain data that the function needs to complete its operation. You should be aware that if a function or variable expecting an integer gets a real number, it will ignore everything to the right of the decimal point.


 

© 2016 ProModel Corporation • 556 East Technology Avenue • Orem, UT 84097 • Support: 888-776-6633 • www.promodel.com